import { BaseTableState } from '#/core'
import { ClassifyItem } from '@/api/premium/category/model/classifyModel'
import {
  MaterialItem,
  MaterialSecType,
  MaterialStucture,
  MaterialType,
} from '@/components/ItemList/MaterialList/types'

export interface ListMaterialItem extends MaterialItem {
  modifyAtlasPopVisible: boolean
}

export type MaterialTableState = BaseTableState<ListMaterialItem>

export interface EditMatInfoDiaForm {
  /** 素材标题 */
  title?: string
  /** 素材描述 */
  description?: string
  /** 图片标签 */
  tags?: string[]
  /** 图片一级类型 */
  type?: MaterialType
  /** 图片二级类型 */
  itype?: MaterialSecType
  /** 素材用途: 0商业 1传媒 */
  usage?: number
  /** 构图方式 */
  structure?: MaterialStucture
  /** 素材分类 */
  categories?: { label: string; value: string }[]
}
export interface EditMatInfoDiaState {
  visiable: boolean
  quickAddTagVisiable: boolean
  tagList: { label: string; value: string }[]
  addTagValue: string
  classifyTreeData: ClassifyItem[]
  currentMaterial?: MaterialItem
  formData: EditMatInfoDiaForm
}
